package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareGoodsBrand;
import com.YxyBackMange.Mapper.Ware.WareGoodsBrandMapper;
import com.YxyBackMange.Service.Ware.WareGoodsBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareGoodsBrandServiceImpl implements WareGoodsBrandService{
	
	@Autowired
    private WareGoodsBrandMapper wareGoodsBrandMapper;
    
   @Override
   public WareGoodsBrand insertService(WareGoodsBrand wareGoodsBrand){
        wareGoodsBrandMapper.insertSelective(wareGoodsBrand);
	   return wareGoodsBrand;
	   
   };
   @Override
   public WareGoodsBrand updateService(WareGoodsBrand wareGoodsBrand){
	     wareGoodsBrandMapper.updateByPrimaryKeySelective(wareGoodsBrand);
        return wareGoodsBrand;
   };
    @Override
    public WareGoodsBrand update(WareGoodsBrand wareGoodsBrand) {
        wareGoodsBrandMapper.updateByPrimaryKeySelective(wareGoodsBrand);
        return wareGoodsBrand;
    }
   @Override
   public WareGoodsBrand delete(WareGoodsBrand wareGoodsBrand){

	     wareGoodsBrandMapper.delete(wareGoodsBrand);
        return wareGoodsBrand;
   };
    @Override
    public WareGoodsBrand insert(WareGoodsBrand wareGoodsBrand){

        wareGoodsBrandMapper.insertSelective(wareGoodsBrand);
        return wareGoodsBrand;

        };
}
